<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AlterUsersTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('users', function (Blueprint $table) {
        	$table->string('telephone')->default('')->comment('手机号码');
        	$table->string('gender')->default('')->comment('性别');
        	$table->string('address')->default('')->comment('地址');
        	$table->string('industry')->default('')->comment('行业');
            $table->integer('coin')->default(0)->comment('该用户的拥有金币');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('users', function (Blueprint $table) {
            //
        });
    }
}
